<template>
  <div>
    <div>
      <el-table :data="lst" style="width: 100%">
        <el-table-column prop="username" label="用户名" width="180">
        </el-table-column>
        <el-table-column prop="login_time" label="登录时间" width="180">
        </el-table-column>
        <el-table-column prop="login_ip" label="登录IP地址"> </el-table-column>
        <el-table-column prop="login_equip" label="登录设备"> </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
export default {
  name: "LoginsView",
  data() {
    return {
      lst: [],
    };
  },
  props: {},

  components: {},

  created() {},

  mounted() {
    this.Log();
  },

  beforeDestroy() {},

  methods: {
    Log() {
      this.$axios.get("users/api/v1/login-log/").then((resp) => {
        console.log(resp);
        if (resp.data.code == 200) {
          this.lst = resp.data.data;
        }
      });
    },
  },

  computed: {},

  watch: {},

  directives: {},

  filters: {},
};
</script>

<style scoped lang="scss"></style>
